package jane.android.lwna;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class ChargingOnReceiver extends BroadcastReceiver 
	{
      
	
		@Override
		public void onReceive(Context context,Intent intent){
		        Intent foo = new Intent(context, lwna.class);
		        //foo.putExtra("id", "id");//example, if you wish to pass custom variables
		        foo.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //非常重要的一条！
		        context.startActivity(foo);
             //启动Activity  
            
			//Toast.makeText(context, "已连接电源", Toast.LENGTH_LONG).show();
        }

		
	}